/*
* @Author: karry
* @Date:   2019-08-01 22:22:11
* @Last Modified by:   karry
* @Last Modified time: 2019-08-01 22:22:11
*/
import React from 'react';

class PageTitle extends React.Component{
	constructor(props){
		super(props);
	}
	componentWillMount(){
		document.title = this.props.title + '- DBMAll ADMIN';
	}
	render(){
		return (
			<div>
				<div className="col-md-12">
					<h1 className="page-header">{this.props.title}</h1>
					{this.props.children}
				</div>
			</div>
		);
	}
}

export default PageTitle;